/*
 * 店铺权限菜单配置列表
 * @Author: ljb
 * @Date: 2018-03-26 10:34:48
 * @Last Modified by: ljb
 * @Last Modified time: 2019-05-05 15:52:12
 */

import { $t } from 'src/i18n';

const ROLES = {
	SUPER_ADMIN: 'SUPER_MAN', // value 是后端返回的值
	FINANCE: 'FINANCE',
	CLERK: 'CLERK',
};

export default [
	{
		name: '/store/staff',
		icon: 'person-stalker',
		text: $t('menus.staff_management'), // '职员管理',
		key: 'store-staff',
		can_access_roles: [ROLES.SUPER_ADMIN],
	},
	{
		name: '/store/device-account',
		icon: 'document-text',
		text: $t('menus.device_management'), // '设备账号管理',
		key: 'store-device-account',
		can_access_roles: [ROLES.SUPER_ADMIN],
	},
	{
		name: '/store/overall-makeup',
		icon: 'happy-outline',
		text: $t('menus.overall_makeup'), // '整体妆容',
		key: 'store-overall-makeup',
		can_access_roles: [ROLES.SUPER_ADMIN],
	},
	{
		name: '1',
		icon: 'help-buoy',
		text: $t('menus.product_management'), // '产品管理',
		can_access_roles: [ROLES.SUPER_ADMIN],
		submenus: [{
			name: '/store/product',
			icon: 'plus-round',
			text: $t('menus.add_product'), // '产品列表',
			key: 'store-product',
			can_access_roles: [ROLES.SUPER_ADMIN],
		}],
	},
	{
		name: 'skinType',
		icon: 'wand',
		text: $t('menus.skin_test_management'),
		can_access_roles: [ROLES.SUPER_ADMIN],
		submenus: [
			{
				name: '/store/skin-test',
				icon: 'eye',
				text: $t('menus.skin_test_data'), // '肤质检测数据',    //面包屑导航
				key: 'store-skin-test',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
			{
				name: '/store/custom-recommend-value',
				icon: 'wand',
				text: $t('menus.touch_recommend_value'), // '智能测肤推荐商品',
				key: 'store-recommend-value',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
			{
				name: '/store/custom-recommend-wax',
				icon: 'wand',
				text: $t('menus.img_recommend_value'), // '3D测肤推荐商品',
				key: 'store-recommend-wax',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
		],
	},
	{
		name: 'order',
		icon: 'briefcase',
		text: $t('menus.youzan_management'),
		can_access_roles: [ROLES.SUPER_ADMIN],
		submenus: [
			{
				name: '/store/youzan-authorize',
				icon: 'android-sync',
				text: $t('menus.youzan_authorize'),	// 有赞授权
				key: 'store-youzan-authorize',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
			{
				name: '/store/youzan-product',
				icon: 'briefcase',
				text: $t('menus.youzan_product'),	// 有赞产品
				key: 'store-youzan-product',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
			{
				name: '/store/youzan-order',
				icon: 'ios-list-outline',
				text: $t('menus.favorable_order'), // 有赞订单列表
				key: 'store-youzan-order',
				can_access_roles: [ROLES.SUPER_ADMIN],
			},
		],

	},

];
